package main

import (
    "github.com/valyala/fasthttp"
    "go.uber.org/zap"
    "github.com/google/uuid"
    "fmt"
)

var logger *zap.Logger

func init() {
    logger, _ = zap.NewProduction()
}

func fastHTTPHandler(ctx *fasthttp.RequestCtx) {
    logger.Info("hello, go module", zap.ByteString("uri", ctx.RequestURI()))
}

func main() {
    fmt.Println(uuid.NewString())
    fasthttp.ListenAndServe(":8081", fastHTTPHandler)
}
